package org.example.springmvc.bean;

import lombok.Data;

//handle参数：http://localhost:8080/handle06?username=%E5%BC%A0%E4%B8%89&password=122212&cellphone=12367798093&agreement=on&
// address.province=%E9%99%95%E8%A5%BF&address.city=%E8%A5%BF%E5%AE%89&address.area=12&sex=%E5%A5%B3&hobby=%E8%B6%B3%E7%90%83&hobby=%E4%B9%92%E4%B9%93%E7%90%83&grade=%E4%BA%8C%E5%B9%B4%E7%BA%A7
@Data//JavaBean 定死的数据模型 ；定不死的写map
public class Person {
    private String username="默认用户";//request.getParameter("username") 反射
    private String password;
    private String cellphone;
    private boolean agreement;
    private Address address;
    private String[] hobby;
    private String sex;
    private String grade;
}

@Data
class Address {
    private String province;//省
    private String city;//市
    private String area;//区
}
